Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
Add || and && to ternanry render in React className

I need to render a component with class name taht is depending on my two differrent useState cases.

<div className="Player" onMouseOver={() => setHover(true)} onMouseOut={() => setHover(false)}>
 <div className={`playerNavigation__container ${!pause ? 'hidden' : 'visible'}`}>
    <Buttons to={'/'} className={'back'}>
       <img className="btn__back-img" src={back} alt="btn__back" />
     </Buttons>
   </div>
</div>

In my class I was trying to use ${!pause || !hover? 'hidden' : 'visible'} but this was not working

I am wondering how i can properly render this.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!